package com.itc.bi.controller.bigScreen;

import com.itc.bi.service.BigScreenPageService;
import com.itc.bi.vo.bigScreenVO.PublishScreenVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: itc-airport-cloud
 * @BelongsPackage: com.itc.bi.controller.bigScreen
 * @Author: hecaiy
 * @CreateTime: 2024-08-14  20:32
 * @Description: TODO 菜单栏大屏列表
 * @Version: 1.0
 */
@RestController
@RequestMapping("/menuBarScreen")
@Api(value = "菜单栏大屏接口",tags = "菜单栏大屏接口")
public class MenuBarScreenController {

    @Autowired
    private BigScreenPageService bigScreenPageService;

    @ApiOperation(value = "根据菜单名称获取大屏列表，态势感知传perception 运行复盘传 replay")
    @GetMapping("/getScreenListByMenuName/{menuName}")
    public List<PublishScreenVO> getScreenListByMenuName(@PathVariable("menuName") String menuName){
        return bigScreenPageService.getScreenListByMenuName(menuName);
    }
}
